put_all_copy
Returns a new map with the mappings of this map combined with the mappings of the given map.
Where a value exists for a given key in both this and the other map, the returned map has the value of the other map, as opposed to the value in this map (right-biased).
a.put_all_copy(b) is equivalent to a + b, where a and b are both maps.
Examples:
[1: 'a', 2: 'b', 3: 'c'].put_all_copy([1: 'Z', 4: 'd', 5: 'e'])returns[1: 'Z', 2: 'b', 3: 'c', 4: 'd', 5: 'e'][1: 'a', 2: 'b', 3: 'c'].put_all_copy([4: 'd', 5: 'e'])returns[1: 'a', 2: 'b', 3: 'c', 4: 'd', 5: 'e']
Since
0.14.16
Parameters
map
the other map